package c.e.a.b.f.b;

import java.util.List;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class n3 extends a5 {
    public String c;
    public String d;
    public int e;
    public String f;
    public long g;
    public long h;
    public List<String> i;
    public int j;
    public String k;
    public String l;
    public String m;

    public n3(u4 u4Var, long j) {
        super(u4Var);
        this.h = j;
    }

    public final boolean v() {
        return true;
    }

    /* JADX WARNING: Removed duplicated region for block: B:125:0x02c3 A:{SYNTHETIC, Splitter:B:125:0x02c3} */
    /* JADX WARNING: Removed duplicated region for block: B:133:0x02e9  */
    /* JADX WARNING: Removed duplicated region for block: B:143:0x031a  */
    /* JADX WARNING: Removed duplicated region for block: B:147:0x0329  */
    /* JADX WARNING: Removed duplicated region for block: B:145:0x031e  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x0199  */
    /* JADX WARNING: Removed duplicated region for block: B:80:0x01d6 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:79:0x01d3 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:104:0x0240 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:110:0x0265 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:120:0x02b0  */
    /* JADX WARNING: Removed duplicated region for block: B:119:0x02a4  */
    /* JADX WARNING: Removed duplicated region for block: B:125:0x02c3 A:{SYNTHETIC, Splitter:B:125:0x02c3} */
    /* JADX WARNING: Removed duplicated region for block: B:133:0x02e9  */
    /* JADX WARNING: Removed duplicated region for block: B:143:0x031a  */
    /* JADX WARNING: Removed duplicated region for block: B:145:0x031e  */
    /* JADX WARNING: Removed duplicated region for block: B:147:0x0329  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x00d5  */
    /* JADX WARNING: Removed duplicated region for block: B:50:0x00f8  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x0199  */
    /* JADX WARNING: Removed duplicated region for block: B:73:0x01ae A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:79:0x01d3 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:80:0x01d6 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:83:0x01e2 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:104:0x0240 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:110:0x0265 A:{Catch:{ IllegalStateException -> 0x0280 }} */
    /* JADX WARNING: Removed duplicated region for block: B:119:0x02a4  */
    /* JADX WARNING: Removed duplicated region for block: B:120:0x02b0  */
    /* JADX WARNING: Removed duplicated region for block: B:125:0x02c3 A:{SYNTHETIC, Splitter:B:125:0x02c3} */
    /* JADX WARNING: Removed duplicated region for block: B:133:0x02e9  */
    /* JADX WARNING: Removed duplicated region for block: B:143:0x031a  */
    /* JADX WARNING: Removed duplicated region for block: B:147:0x0329  */
    /* JADX WARNING: Removed duplicated region for block: B:145:0x031e  */
    public final void w() {
        /*
        r11 = this;
        r0 = "unknown";
        r1 = "Unknown";
        r2 = "Unknown";
        r3 = r11.a;
        r3 = r3.a;
        r3 = r3.getPackageName();
        r4 = r11.a;
        r4 = r4.a;
        r4 = r4.getPackageManager();
        r5 = 0;
        r6 = -2147483648; // 0xffffffff80000000 float:-0.0 double:NaN;
        if (r4 != 0) goto L_0x002b;
    L_0x001b:
        r2 = r11.d();
        r2 = r2.f;
        r7 = "PackageManager is null, app identity information might be inaccurate. appId";
        r8 = c.e.a.b.f.b.q3.s(r3);
        r2.b(r7, r8);
        goto L_0x0080;
    L_0x002b:
        r0 = r4.getInstallerPackageName(r3);	 Catch:{ IllegalArgumentException -> 0x0030 }
        goto L_0x003f;
    L_0x0030:
        r7 = r11.d();
        r7 = r7.f;
        r8 = "Error retrieving app installer package name. appId";
        r9 = c.e.a.b.f.b.q3.s(r3);
        r7.b(r8, r9);
    L_0x003f:
        if (r0 != 0) goto L_0x0044;
    L_0x0041:
        r0 = "manual_install";
        goto L_0x004e;
    L_0x0044:
        r7 = "com.android.vending";
        r7 = r7.equals(r0);
        if (r7 == 0) goto L_0x004e;
    L_0x004c:
        r0 = "";
    L_0x004e:
        r7 = r11.a;	 Catch:{ NameNotFoundException -> 0x0071 }
        r7 = r7.a;	 Catch:{ NameNotFoundException -> 0x0071 }
        r7 = r7.getPackageName();	 Catch:{ NameNotFoundException -> 0x0071 }
        r7 = r4.getPackageInfo(r7, r5);	 Catch:{ NameNotFoundException -> 0x0071 }
        if (r7 == 0) goto L_0x0080;
    L_0x005c:
        r8 = r7.applicationInfo;	 Catch:{ NameNotFoundException -> 0x0071 }
        r8 = r4.getApplicationLabel(r8);	 Catch:{ NameNotFoundException -> 0x0071 }
        r9 = android.text.TextUtils.isEmpty(r8);	 Catch:{ NameNotFoundException -> 0x0071 }
        if (r9 != 0) goto L_0x006c;
    L_0x0068:
        r2 = r8.toString();	 Catch:{ NameNotFoundException -> 0x0071 }
    L_0x006c:
        r1 = r7.versionName;	 Catch:{ NameNotFoundException -> 0x0071 }
        r6 = r7.versionCode;	 Catch:{ NameNotFoundException -> 0x0071 }
        goto L_0x0080;
    L_0x0071:
        r7 = r11.d();
        r7 = r7.f;
        r8 = "Error retrieving package info. appId, appName";
        r9 = c.e.a.b.f.b.q3.s(r3);
        r7.c(r8, r9, r2);
    L_0x0080:
        r11.c = r3;
        r11.f = r0;
        r11.d = r1;
        r11.e = r6;
        r0 = 0;
        r11.g = r0;
        r0 = r11.a;
        r0 = r0.a;
        r1 = c.e.a.b.b.g.a.b.d;
        r1 = "Context must not be null.";
        b.i.b.f.S(r0, r1);
        r1 = c.e.a.b.b.g.a.b.d;
        monitor-enter(r1);
        r2 = c.e.a.b.b.g.a.b.e;	 Catch:{ all -> 0x032c }
        if (r2 != 0) goto L_0x00a5;
    L_0x009e:
        r2 = new c.e.a.b.b.g.a.b;	 Catch:{ all -> 0x032c }
        r2.m1226init(r0);	 Catch:{ all -> 0x032c }
        c.e.a.b.b.g.a.b.e = r2;	 Catch:{ all -> 0x032c }
    L_0x00a5:
        r0 = c.e.a.b.b.g.a.b.e;	 Catch:{ all -> 0x032c }
        r0 = r0.b;	 Catch:{ all -> 0x032c }
        monitor-exit(r1);	 Catch:{ all -> 0x032c }
        r1 = 1;
        if (r0 == 0) goto L_0x00b8;
    L_0x00ad:
        r2 = r0.b;
        if (r2 > 0) goto L_0x00b3;
    L_0x00b1:
        r2 = 1;
        goto L_0x00b4;
    L_0x00b3:
        r2 = 0;
    L_0x00b4:
        if (r2 == 0) goto L_0x00b8;
    L_0x00b6:
        r2 = 1;
        goto L_0x00b9;
    L_0x00b8:
        r2 = 0;
    L_0x00b9:
        r6 = r11.a;
        r6 = r6.b;
        r6 = android.text.TextUtils.isEmpty(r6);
        if (r6 != 0) goto L_0x00d1;
    L_0x00c3:
        r6 = "am";
        r7 = r11.a;
        r7 = r7.c;
        r6 = r6.equals(r7);
        if (r6 == 0) goto L_0x00d1;
    L_0x00cf:
        r6 = 1;
        goto L_0x00d2;
    L_0x00d1:
        r6 = 0;
    L_0x00d2:
        r2 = r2 | r6;
        if (r2 != 0) goto L_0x00f6;
    L_0x00d5:
        if (r0 != 0) goto L_0x00e3;
    L_0x00d7:
        r0 = r11.d();
        r0 = r0.g;
        r7 = "GoogleService failed to initialize (no status)";
        r0.a(r7);
        goto L_0x00f6;
    L_0x00e3:
        r7 = r11.d();
        r7 = r7.g;
        r8 = "GoogleService failed to initialize, status";
        r9 = r0.b;
        r9 = java.lang.Integer.valueOf(r9);
        r0 = r0.c;
        r7.c(r8, r9, r0);
    L_0x00f6:
        if (r2 == 0) goto L_0x018a;
    L_0x00f8:
        r0 = r11.a;
        r0 = r0.j();
        switch(r0) {
            case 0: goto L_0x0168;
            case 1: goto L_0x015c;
            case 2: goto L_0x0150;
            case 3: goto L_0x0144;
            case 4: goto L_0x0138;
            case 5: goto L_0x012c;
            case 6: goto L_0x0120;
            case 7: goto L_0x0114;
            case 8: goto L_0x0107;
            default: goto L_0x0101;
        };
    L_0x0101:
        r2 = r11.d();
        goto L_0x0174;
    L_0x0107:
        r2 = r11.d();
        r2 = r2.l;
        r7 = "App measurement disabled due to denied storage consent";
        r2.a(r7);
        goto L_0x0186;
    L_0x0114:
        r2 = r11.d();
        r2 = r2.l;
        r7 = "App measurement disabled via the global data collection setting";
        r2.a(r7);
        goto L_0x0186;
    L_0x0120:
        r2 = r11.d();
        r2 = r2.k;
        r7 = "App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics";
        r2.a(r7);
        goto L_0x0186;
    L_0x012c:
        r2 = r11.d();
        r2 = r2.n;
        r7 = "App measurement disabled via the init parameters";
        r2.a(r7);
        goto L_0x0186;
    L_0x0138:
        r2 = r11.d();
        r2 = r2.l;
        r7 = "App measurement disabled via the manifest";
        r2.a(r7);
        goto L_0x0186;
    L_0x0144:
        r2 = r11.d();
        r2 = r2.l;
        r7 = "App measurement disabled by setAnalyticsCollectionEnabled(false)";
        r2.a(r7);
        goto L_0x0186;
    L_0x0150:
        r2 = r11.d();
        r2 = r2.n;
        r7 = "App measurement deactivated via the init parameters";
        r2.a(r7);
        goto L_0x0186;
    L_0x015c:
        r2 = r11.d();
        r2 = r2.l;
        r7 = "App measurement deactivated via the manifest";
        r2.a(r7);
        goto L_0x0186;
    L_0x0168:
        r2 = r11.d();
        r2 = r2.n;
        r7 = "App measurement collection enabled";
        r2.a(r7);
        goto L_0x0186;
    L_0x0174:
        r2 = r2.l;
        r7 = "App measurement disabled";
        r2.a(r7);
        r2 = r11.d();
        r2 = r2.g;
        r7 = "Invalid scion state in identity";
        r2.a(r7);
    L_0x0186:
        if (r0 != 0) goto L_0x018a;
    L_0x0188:
        r0 = 1;
        goto L_0x018b;
    L_0x018a:
        r0 = 0;
    L_0x018b:
        r2 = "";
        r11.k = r2;
        r2 = "";
        r11.l = r2;
        r2 = "";
        r11.m = r2;
        if (r6 == 0) goto L_0x019f;
    L_0x0199:
        r2 = r11.a;
        r2 = r2.b;
        r11.l = r2;
    L_0x019f:
        r2 = 0;
        r6 = c.e.a.b.e.c.kb.b;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.q();	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = (c.e.a.b.e.c.nb) r6;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.q();	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 == 0) goto L_0x01c5;
    L_0x01ae:
        r6 = r11.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.g;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = c.e.a.b.f.b.p.C0;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.o(r7);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 == 0) goto L_0x01c5;
    L_0x01ba:
        r6 = r11.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = "google_app_id";
        r6 = c.e.a.b.b.j.d.u(r6, r7);	 Catch:{ IllegalStateException -> 0x0280 }
        goto L_0x01cd;
    L_0x01c5:
        r6 = "getGoogleAppId";
        r6 = c.e.a.b.b.g.a.b.a(r6);	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.a;	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x01cd:
        r7 = android.text.TextUtils.isEmpty(r6);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r7 == 0) goto L_0x01d6;
    L_0x01d3:
        r7 = "";
        goto L_0x01d7;
    L_0x01d6:
        r7 = r6;
    L_0x01d7:
        r11.k = r7;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = c.e.a.b.e.c.fa.a();	 Catch:{ IllegalStateException -> 0x0280 }
        r8 = 2131689759; // 0x7f0f011f float:1.9008542E38 double:1.0531946775E-314;
        if (r7 == 0) goto L_0x023a;
    L_0x01e2:
        r7 = r11.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = r7.g;	 Catch:{ IllegalStateException -> 0x0280 }
        r9 = c.e.a.b.f.b.p.j0;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = r7.o(r9);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r7 == 0) goto L_0x023a;
    L_0x01ee:
        r7 = r11.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = r7.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r9 = "null reference";
        java.util.Objects.requireNonNull(r7, r9);	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = r7.getResources();	 Catch:{ IllegalStateException -> 0x0280 }
        r8 = r7.getResourcePackageName(r8);	 Catch:{ IllegalStateException -> 0x0280 }
        r9 = "ga_app_id";
        r10 = "string";
        r9 = r7.getIdentifier(r9, r10, r8);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r9 != 0) goto L_0x020b;
    L_0x0209:
        r9 = r2;
        goto L_0x020f;
    L_0x020b:
        r9 = r7.getString(r9);	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x020f:
        r10 = android.text.TextUtils.isEmpty(r9);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r10 == 0) goto L_0x0218;
    L_0x0215:
        r10 = "";
        goto L_0x0219;
    L_0x0218:
        r10 = r9;
    L_0x0219:
        r11.m = r10;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 == 0) goto L_0x0227;
    L_0x0221:
        r6 = android.text.TextUtils.isEmpty(r9);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 != 0) goto L_0x0263;
    L_0x0227:
        r6 = "admob_app_id";
        r9 = "string";
        r6 = r7.getIdentifier(r6, r9, r8);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 != 0) goto L_0x0233;
    L_0x0231:
        r6 = r2;
        goto L_0x0237;
    L_0x0233:
        r6 = r7.getString(r6);	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x0237:
        r11.l = r6;	 Catch:{ IllegalStateException -> 0x0280 }
        goto L_0x0263;
    L_0x023a:
        r6 = android.text.TextUtils.isEmpty(r6);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r6 != 0) goto L_0x0263;
    L_0x0240:
        r6 = r11.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.a;	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = "null reference";
        java.util.Objects.requireNonNull(r6, r7);	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = r6.getResources();	 Catch:{ IllegalStateException -> 0x0280 }
        r7 = r6.getResourcePackageName(r8);	 Catch:{ IllegalStateException -> 0x0280 }
        r8 = "admob_app_id";
        r9 = "string";
        r7 = r6.getIdentifier(r8, r9, r7);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r7 != 0) goto L_0x025d;
    L_0x025b:
        r6 = r2;
        goto L_0x0261;
    L_0x025d:
        r6 = r6.getString(r7);	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x0261:
        r11.l = r6;	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x0263:
        if (r0 == 0) goto L_0x0290;
    L_0x0265:
        r0 = r11.d();	 Catch:{ IllegalStateException -> 0x0280 }
        r0 = r0.n;	 Catch:{ IllegalStateException -> 0x0280 }
        r6 = "App measurement enabled for app package, google app id";
        r7 = r11.c;	 Catch:{ IllegalStateException -> 0x0280 }
        r8 = r11.k;	 Catch:{ IllegalStateException -> 0x0280 }
        r8 = android.text.TextUtils.isEmpty(r8);	 Catch:{ IllegalStateException -> 0x0280 }
        if (r8 == 0) goto L_0x027a;
    L_0x0277:
        r8 = r11.l;	 Catch:{ IllegalStateException -> 0x0280 }
        goto L_0x027c;
    L_0x027a:
        r8 = r11.k;	 Catch:{ IllegalStateException -> 0x0280 }
    L_0x027c:
        r0.c(r6, r7, r8);	 Catch:{ IllegalStateException -> 0x0280 }
        goto L_0x0290;
    L_0x0280:
        r0 = move-exception;
        r6 = r11.d();
        r6 = r6.f;
        r7 = "Fetching Google App Id failed with exception. appId";
        r3 = c.e.a.b.f.b.q3.s(r3);
        r6.c(r7, r3, r0);
    L_0x0290:
        r11.i = r2;
        r0 = r11.a;
        r0 = r0.g;
        r3 = "analytics.safelisted_events";
        java.util.Objects.requireNonNull(r0);
        b.i.b.f.N(r3);
        r6 = r0.D();
        if (r6 != 0) goto L_0x02b0;
    L_0x02a4:
        r3 = r0.d();
        r3 = r3.f;
        r6 = "Failed to load metadata: Metadata bundle is null";
        r3.a(r6);
        goto L_0x02b6;
    L_0x02b0:
        r7 = r6.containsKey(r3);
        if (r7 != 0) goto L_0x02b8;
    L_0x02b6:
        r3 = r2;
        goto L_0x02c0;
    L_0x02b8:
        r3 = r6.getInt(r3);
        r3 = java.lang.Integer.valueOf(r3);
    L_0x02c0:
        if (r3 != 0) goto L_0x02c3;
    L_0x02c2:
        goto L_0x02e7;
    L_0x02c3:
        r6 = r0.a;	 Catch:{ NotFoundException -> 0x02db }
        r6 = r6.a;	 Catch:{ NotFoundException -> 0x02db }
        r6 = r6.getResources();	 Catch:{ NotFoundException -> 0x02db }
        r3 = r3.intValue();	 Catch:{ NotFoundException -> 0x02db }
        r3 = r6.getStringArray(r3);	 Catch:{ NotFoundException -> 0x02db }
        if (r3 != 0) goto L_0x02d6;
    L_0x02d5:
        goto L_0x02e7;
    L_0x02d6:
        r2 = java.util.Arrays.asList(r3);	 Catch:{ NotFoundException -> 0x02db }
        goto L_0x02e7;
    L_0x02db:
        r3 = move-exception;
        r0 = r0.d();
        r0 = r0.f;
        r6 = "Failed to load string array from metadata: resource not found";
        r0.b(r6, r3);
    L_0x02e7:
        if (r2 == 0) goto L_0x0318;
    L_0x02e9:
        r0 = r2.size();
        if (r0 != 0) goto L_0x02fb;
    L_0x02ef:
        r0 = r11.d();
        r0 = r0.k;
        r1 = "Safelisted event list is empty. Ignoring";
        r0.a(r1);
        goto L_0x0317;
    L_0x02fb:
        r0 = r2.iterator();
    L_0x02ff:
        r3 = r0.hasNext();
        if (r3 == 0) goto L_0x0318;
    L_0x0305:
        r3 = r0.next();
        r3 = (java.lang.String) r3;
        r6 = r11.k();
        r7 = "safelisted event";
        r3 = r6.m0(r7, r3);
        if (r3 != 0) goto L_0x02ff;
    L_0x0317:
        r1 = 0;
    L_0x0318:
        if (r1 == 0) goto L_0x031c;
    L_0x031a:
        r11.i = r2;
    L_0x031c:
        if (r4 == 0) goto L_0x0329;
    L_0x031e:
        r0 = r11.a;
        r0 = r0.a;
        r0 = c.e.a.b.b.j.d.e(r0);
        r11.j = r0;
        return;
    L_0x0329:
        r11.j = r5;
        return;
    L_0x032c:
        r0 = move-exception;
        monitor-exit(r1);	 Catch:{ all -> 0x032c }
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.n3.w():void");
    }
}
